<?php include atemplate('header');?>

<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" align="left" bgcolor="#B51C00"> 　<span class="STYLE8">祝福管理</span></td>
    <td width="100" align="center" bgcolor="#B51C00"></td>
  </tr>
</table>
<form action="/admin/index.php" method="get">
  <table width="96%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="300" height="30" align="left">&nbsp;</td>
      <td align="right"><input name="keyword" type="text" class="STYLE2" id="keyword" value="<?php echo $keyword;?>" />
        <input type="submit" value="祝福检索" /></td>
    </tr>
  </table>
  <input type="hidden" name="ac"  value="list"/>
  <input type="hidden" name="do"  value="pray"/>
</form>
<table width="96%" border="0" cellspacing="1" cellpadding="0" bgcolor="#999999">
  <tr>
    <td align="center" valign="middle" bgcolor="#FAFAFA" class="STYLE7">ID</td>
    <td height="40" align="center" bgcolor="#FAFAFA" class="STYLE7">祝 福 列 表</td>
    <td height="40" colspan="2" align="center" valign="middle" bgcolor="#FAFAFA" class="STYLE7">操 作</td>
  </tr>
  <?php foreach ($list as $key=>$val) {
	$key %2 == 1 ? $bgcolor = 'bgcolor="#FAFAFA"' : $bgcolor = 'bgcolor="#FFFFF7"';
?>
  <tr <?php echo $bgcolor;?>>
    <td width="40" align="center" valign="middle" class="STYLE7"><?php echo $val['id'];?></td>
    <td height="40" align="left"><a href="#" target="_blank" class="link2"><?php echo $val['content'];?></a></td>
    <td width="60" height="40" align="center" valign="middle"><a href="/admin/index.php?do=pray&ac=edit&id=<?php echo $val['id'];?>">编辑</a></td>
    <td width="60" align="center" valign="middle"><a href="/admin/index.php?do=pray&ac=del&id=<?php echo $val['id'];?>" onclick="return confirm('是否真的删除');">删除</a></td>
  </tr>
  <?php }?>
</table>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" align="right" class="page"><?php echo $pagestr;?></td>
  </tr>
</table>
<?php include atemplate('footer');?>
